const Router = require('koa-router')
const router = new Router()
const { register, login, find } = require('../controllers/user')

router.post('/register', register)
router.post('/login', login)
router.get('/:name', find)

module.exports = router